package org.mao.forum.entity;

import org.mao.base.BaseEntity;

public class ForumPost extends BaseEntity {

	private Integer sectionId;
	private String name;
	private String postNumber;
	private String content;
	private String url;
	private String torrentName;
	private String torrentUrl;
	private Integer torrentDownload;
	private Integer valid;

	public Integer getSectionId() {
		return sectionId;
	}

	public void setSectionId(Integer sectionId) {
		this.sectionId = sectionId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = this.limitStringLength(name, 255);
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getValid() {
		return valid;
	}

	public void setValid(Integer valid) {
		this.valid = valid;
	}

	public String getPostNumber() {
		return postNumber;
	}

	public void setPostNumber(String postNumber) {
		this.postNumber = postNumber;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = this.limitStringLength(content, 2048);
	}

	public String getTorrentName() {
		return torrentName;
	}

	public void setTorrentName(String torrentName) {
		this.torrentName = this.limitStringLength(torrentName, 64);
	}

	public String getTorrentUrl() {
		return torrentUrl;
	}

	public void setTorrentUrl(String torrentUrl) {
		this.torrentUrl = this.limitStringLength(torrentUrl, 255);
	}

	public Integer getTorrentDownload() {
		return torrentDownload;
	}

	public void setTorrentDownload(Integer torrentDownload) {
		this.torrentDownload = torrentDownload;
	}

}
